﻿using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.Hr;

/// <summary>
/// 工作经历
/// </summary>
public class SysPersonWork : BasePoco
{
    [Display(Name = "员工ID", Description = "关联员工主键", GroupName = "基本信息")]
    public Guid? PersonId { get; set; }

    [Display(Name = "员工", Description = "关联的员工实体", GroupName = "基本信息")]
    public SysPerson Person { get; set; }

    [Required]
    [Display(Name = "工作单位", Description = "曾任职的公司或单位名称", GroupName = "工作信息")]
    [StringLength(128)]
    public string Company { get; set; }

    [Display(Name = "岗位", Description = "担任的岗位或职位", GroupName = "工作信息")]
    [StringLength(128)]
    public string Position { get; set; }

    [Display(Name = "到职日期", Description = "工作开始日期", GroupName = "工作信息")]
    public DateTime? StartDate { get; set; }

    [Display(Name = "离职日期", Description = "工作结束日期", GroupName = "工作信息")]
    public DateTime? EndDate { get; set; }

    [Display(Name = "证明人", Description = "工作经历证明人", GroupName = "工作信息")]
    [StringLength(128)]
    public string Reference { get; set; }
}